package org.csmz.class2333;

import java.util.Locale;

public class Example05 {
    public static void main(String[] args){
        String  s ="Hello";
        char[] charArray = s.toCharArray();
        System.out.print("将字符串"+s+"转换为字符数组后的结果：");
        for(int i =0; i< charArray.length;i++){
            if (i != charArray.length -1){
                System.out.print(charArray[i] + ",");
            }else{
                System.out.println(charArray[i]);
            }
        }
        System.out.println("将int类型的数据12转换为String类型，结果为" + String.valueOf(12));
        System.out.println("将字符串"+s+"全部转换成大写之后的结果：" + s.toUpperCase());
        System.out.println("将字符串"+s+"全部转换成小写之后的结果："+ s.toLowerCase());
    }
}
